3 import java.io.Serializable;
4 import java.util.Arrays;
7 public class Account implements Serializable {
12 private static final long serialVersionUID = 1L;
15 private byte[] username;
16 private byte[] password;
21 private boolean admin = false;
27 public byte[] getUsername() {
31 public byte[] getPassword() {
35 public Owner getOwner() {
39 public boolean getAdmin() {
44 public void setAdmin(boolean admin) {
48 public byte[] getSalt() {
52 public void setSalt(byte[] salt) {
58 public boolean equals(Object obj) {
63 if (getClass() != obj.getClass())
65 Account other = (Account) obj;
66 if (!Arrays.equals(username, other.username))